
import request from '@/utils/request'

const industrialApi = {
    industrialList: '/v1/industrial/park/page/list', // 园区分页列表
    updateIndustrial: '/v1/industrial/park/saveOrUpdate', // 新增、修改园区信息
    delIndustrial: '/v1/industrial/park/delete', // 园区删除
    changeStateIndustrial: '/v1/industrial/park/changeState', // 园区状态切换
    selIndustrialList: '/v1/industrial/park/select/list', // 园区下拉列表
    IndustrialPolicyList: '/v1/industrial/park/policy/page/list', // 园区个体户行业政策列表
    updateIndustriallPolicy: '/v1/industrial/park/policy/saveOrUpdate', // 新增、修改园区个体户行业政策配置
    delIndustrialPolicy: '/v1/industrial/park/policy/delete', // 删除园区个体户行业政策配置
}

// 园区分页列表
export function industrialList (parameter) {
    return request({
        url: industrialApi.industrialList,
        method: 'get',
        params: parameter
    })
}
// 新增、修改园区信息
export function updateIndustrial (parameter) {
    return request({
        url: industrialApi.updateIndustrial,
        method: 'post',
        data: parameter
    })
}
// 园区删除
export function delIndustrial (parameter) {
    return request({
        url: industrialApi.delIndustrial,
        method: 'post',
        data: parameter
    })
}
// 园区状态切换
export function changeStateIndustrial (parameter) {
    return request({
        url: industrialApi.changeStateIndustrial,
        method: 'post',
        data: parameter
    })
}

// 园区下拉列表
export function selIndustrialList (parameter) {
    return request({
        url: industrialApi.selIndustrialList,
        method: 'get',
        params: parameter
    })
}

// 园区个体户行业政策配置列表
export function IndustrialPolicyList (parameter) {
    return request({
        url: industrialApi.IndustrialPolicyList,
        method: 'get',
        params: parameter
    })
}
// 新增、修改园区个体户行业政策配置
export function updateIndustriallPolicy (parameter) {
    return request({
        url: industrialApi.updateIndustriallPolicy,
        method: 'post',
        data: parameter
    })
}
// 删除园区个体户行业政策配置
export function delIndustrialPolicy (parameter) {
    return request({
        url: industrialApi.delIndustrialPolicy,
        method: 'post',
        data: parameter
    })
}